package com.woniu.cms.goods.core.controller;


import com.woniu.cms.goods.core.service.IGoodsOutbillMaterialService;
import com.woniu.common.api.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 领料单附属的材料表，领料单材料详情页所显示的材料信息 前端控制器
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-18
 */
@Api(tags = "领料单材料明细表")
@RestController
@RequestMapping("/goods-outbill-material")
public class GoodsOutbillMaterialController {
    @Autowired
    private IGoodsOutbillMaterialService outbillMaterialService;

    /*
     * 查询所有出库材料
     * @currentPage，当前页码
     * @pageSize，页面大小
     * @status，出库单状态
     * */
    @GetMapping
    @ApiOperation("分页查询/按状态查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "currentPage",value = "当前页码"),
            @ApiImplicitParam(name = "pageSize",value = "页面大小"),
            @ApiImplicitParam(name = "status",value = "出库单状态")
    })
    public Result getlist(Integer currentPage, Integer pageSize, Integer status,String projectCode){
        Result result = outbillMaterialService.getlist(currentPage,pageSize,status,projectCode);
        return result;
    }

}

